package com.lindenvalley.ch.application;

import android.app.Application;

public class BerichtApplication extends Application {
	
	/**
	 * If application not connected to server, that variable is true, otherwise false
	 */
	private boolean offLineWork;
	private int offlineTaskId = -1;

	public void setOffLineWork(boolean offLineWork) {
		this.offLineWork = offLineWork;
	}

	/**
	 * If application not connected to server, that method return true, otherwise false
	 */
	public boolean isOffLineWork() {
		return offLineWork;
	}

	public int getOfflineTaskId() {
		return offlineTaskId;
	}
	
	/**
	 * Decrementing offlineTaskId value; 
	 */
	public void decrementOffLineTaskId(){
		this.offlineTaskId--;
	}
	
	/**
	 * Set offlineTaskId to value -1;
	 */
	public void initOfflineTaskId(){
		this.offlineTaskId = -1;
	}
	
	

}
